package ch01.decrator;

/**
 * 装饰模式
 * Created by zc on 2016/11/20.
 */
public abstract class Decrator extends Component {
    private Component component = null;

    public Decrator(Component component) {
        this.component = component;
    }

    @Override
    public void doSomething() {
        this.component.doSomething();
    }
}
